import requests from "./requests";

export const getRegister = (data) => {
    console.log(JSON.stringify(data))
    return requests({ url: '/sys/register', method: 'POST', data: JSON.stringify(data), headers: { 'Content-Type': 'application/json' } });
}

export const getLogin = (data) => {
    return requests({ url: '/sys/login', method: 'POST', data: JSON.stringify(data), headers: { 'Content-Type': 'application/json' } });
}

export const getBill = (data, token = null) => {
    return requests({ url: '/bill/getByMonth', method: 'GET', params: { year: data.year, month: data.month }, headers: { 'X-Access-Token': token } });
}